// indx.js相当于一个vue插件
// eslint-disable-next-line no-unused-vars
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import ScreenFull from './ScreenFull'
import Lang from './lang'
import TagsView from './TagsView'
// 默认暴露一个Install方法
const components = [PageTools, UploadExcel, UploadImg, ScreenFull, Lang, TagsView]
export default {
  // 当vue使用这个而插件是 就会调用install
  install(Vue) {
    // console.log('Vue', Vue)
    // 给vue注册了全局组件
    // Vue.component('PageTools', PageTools)
    // Vue.component(UploadExcel.name, UploadExcel)
    components.forEach(com => {
      Vue.component(com.name, com)
    })
  }
}
